/*
 * @Author: your name
 * @Date: 2022-04-10 19:36:14
 * @LastEditTime: 2022-04-13 20:10:42
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\vehicle\dto\update-vehicle.dto.ts
 */
import { ApiProperty, PartialType } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber } from 'class-validator';
import { CreateVehicleDto } from './create-vehicle.dto';

export class UpdateVehicleDto extends PartialType(CreateVehicleDto) {
  @IsNotEmpty()
  @ApiProperty({ description: 'ID' })
  readonly id: number;

  @IsNotEmpty()
  @ApiProperty({ description: '车牌号' })
  readonly licensePlate: string;

  @IsNotEmpty()
  @ApiProperty({ description: '续保时间' })
  readonly Renewal_time: string;

  @IsNotEmpty()
  @ApiProperty({ description: '保险到期时间' })
  readonly maturity_time: string;

  @IsNotEmpty()
  @ApiProperty({ description: '车子状态' })
  readonly vehicle_status: string;

  @IsNotEmpty()
  @ApiProperty({ description: '报废时间' })
  readonly scrap_date: string;
}
